
function StringBuffer(str) {
	this._strings_ = new Array();
	if (str)
		this._strings_.push(str);
}
StringBuffer.prototype.append = function(str) {
	this._strings_.push(str);
}
StringBuffer.prototype.toString = function() {
	return this._strings_.join("");
}

/*******************************************************************************
 * 模拟Java中的Map
 ******************************************************************************/
function openWindow(url, param, closedFuction, height, width) {
	var windowSize;
	if (height && width)
		windowSize = ",height=" + height + ",width=" + width;
	var oW = window.open("", "myprints", "scrollbars=no,status=no"
			+ (windowSize ? windowSize : ''));
	oW.document.write('<form name="form1"   action="' + url
			+ '"  method="post">');
	for (var i = 0; i < param.length; i++) {
		oW.document.write('<input type="hidden" name="' + param[i].name
				+ '" value="' + param[i].value + '">');

	}
	oW.document.write('</form>');
	oW.document.close();
	oW.form1.submit();

	if (closedFuction) {
		function oWclosed() {
			if (oW.closed) {
				closedFuction();
			} else {
				setTimeout(oWclosed, 500);
			}
		}
		setTimeout(oWclosed, 500);
	}

}





